# Contributor: Maxim Karasev <begs@disroot.org>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=responder
pkgver=3.1.5.0
pkgrel=0
pkgdesc="IPv6/IPv4 LLMNR/NBT-NS/mDNS Poisoner and NTLMv1/2 relay"
url="https://github.com/lgandx/Responder"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-netifaces"
source="https://github.com/lgandx/Responder/archive/refs/tags/v$pkgver/Responder-$pkgver.tar.gz
	fhs.patch"
builddir="$srcdir/Responder-$pkgver"
options="!check" # no tests

package() {
	mkdir -p "$pkgdir"/usr/share/responder \
		"$pkgdir"/var/log/responder \
		"$pkgdir"/var/lib/responder \
		"$pkgdir"/etc/responder \
		"$pkgdir"/usr/bin

	find -type d -mindepth 1 | xargs cp -rt "$pkgdir"/usr/share/responder
	cp *.py "$pkgdir"/usr/share/responder
	install -Dm644 Responder.conf "$pkgdir"/etc/responder/responder.conf
	ln -s /usr/share/responder/Responder.py "$pkgdir"/usr/bin/responder
}

sha512sums="
5e44c34901ce1de4e55b477c11ccfb6acd681b64e56c51807ccb352340cb838888ee2bdbdf3bb4bb011e0c2d15c9baadecba24896d4c641059ba87551ce35057  Responder-3.1.5.0.tar.gz
5cd72e06169ce22b6dbae678382dbd40b2ab6de76f294e52015853fa870e8d0ff680e56accdb62ce62209edf1f9c7ecb2a479b3cf67f565290d562ea74679c67  fhs.patch
"
